package com.example.sharding.service.Impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.sharding.domain.entity.Department;
import com.example.sharding.domain.mapper.DepartmentMapper;
import com.example.sharding.service.DepartmentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * @author liuxinghong
 * @Description:
 * @date 2020/1/11/01114:15
 */
@Service
@Transactional(rollbackFor = {Exception.class})
public class DepartmentServiceImpl extends ServiceImpl<DepartmentMapper,Department>  implements DepartmentService{

    @Autowired
    private DepartmentMapper departmentMapper;
    @Override
    public List<Department> listByParam(String name) {
      return   departmentMapper.listByParam(name);
    }
}
